package com.flyco.modules.sms.service;

import com.flyco.modules.sms.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.flyco.modules.sms.model.SmsGiftExistModel;
import com.flyco.modules.sms.model.SmsGiftInfoModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 赠品配置表
 * @Author: flyco
 * @Date:   2023-02-03
 * @Version: V1.0
 */
public interface ISmsGiftInfoService extends IService<SmsGiftInfo> {

    String checkRelation(SmsGiftInfoModel smsGiftInfoModel);

    String checkRelation2(SmsGiftInfoModel smsGiftInfoModel);

    void addRelation(Long giftId, SmsGiftInfoModel smsGiftInfoModel);

    void removeRelation(Long giftId);

    List<SmsGiftProductRelation> queryProductyRelationById (Long id);

    List<SmsGiftProductCategoryRelation> queryCategoryRelationById (Long id);

    List<SmsGiftStoreRelation> queryStoreRelationById (Long id);

    List<SmsGiftStoreGroupRelation> queryStoreGroupRelationById (Long id);

}
